package com.css.fxfzmhwz.base.attachment.service;

import com.css.fxfzmhwz.base.attachment.entity.AttachmentInfoEntity;

import java.util.List;
import java.util.Map;

public interface AttachmentInfoService {
    /**
     *  保存附件进附件表
     */
    int save(List<AttachmentInfoEntity> attachmentInfoEntities);

    /**
     *  根据id和文件名获取保存在磁盘上的真实的文件名
     */
    AttachmentInfoEntity getAttach(String attachId);


    boolean deleteFile(Map<String,String> map);

    /**
     * 获取附件
     * @param fileIds
     * @return
     */
    List<AttachmentInfoEntity> queryFile(String fileIds);
}
